// eslint-disable-next-line
import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'

export const asyncRouterMap = [
  // {
  //   path: '/',
  //   name: 'index',
  //   component: BasicLayout,
  //   meta: { title: '首页' },
  //   redirect: '/home',
  //   children: [
  //     // dashboard
  //     {
  //       path: '/home',
  //       name: 'home',
  //       component: import('@/views/home'),
  //       meta: { title: '仪表盘', keepAlive: true, icon: '' }
  //     },
  //   ]
  // },
  {
    path: '*', redirect: '/404', hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: '首页', keepAlive: true },
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/Home.vue'),
        meta: { title: '主页', keepAlive: true, icon: '' }
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('@/views/About'),
        meta: { title: '关于', keepAlive: true, icon: '' }
      }
    ]
  },
  {
    path: '*', redirect: '/404', hidden: true
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }

]
